Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address Selenium warnings #1135

Merged
merged 18 commits into from
Nov 23, 2024
Merged

Address Selenium warnings #1135

merged 18 commits into from
Nov 23, 2024

Conversation

michplunkett
Copy link
Collaborator

@michplunkett michplunkett commented Nov 22, 2024

Description of Changes

Screenshots (if appropriate)

Before change:
Screenshot 2024-11-22 at 3 06 52 PM

After change (selenium warnings are gone:
Screenshot 2024-11-22 at 5 12 41 PM

Tests and Linting

  • This branch is up-to-date with the develop branch.
  • pytest passes on my local development environment.
  • pre-commit passes on my local development environment.

@michplunkett michplunkett self-assigned this Nov 22, 2024
@michplunkett michplunkett changed the title Address SQLAlchemy and Selenium deprecation warnings Address SQLAlchemy and Selenium warnings Nov 22, 2024
Comment on lines +17 to +18
ENV GECKODRIVER_VERSION="v0.35.0"
ENV GECKODRIVER_SHA=ac26e9ba8f3b8ce0fbf7339b9c9020192f6dcfcbf04a2bcd2af80dfe6bb24260
Copy link
Collaborator Author

@michplunkett michplunkett Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-11-22 at 3 46 14 PM

Driver: link

michaelp@MacBook-Air-18 Downloads % shasum -a 256 geckodriver-v0.35.0-linux64.tar.gz
ac26e9ba8f3b8ce0fbf7339b9c9020192f6dcfcbf04a2bcd2af80dfe6bb24260  geckodriver-v0.35.0-linux64.tar.gz
michaelp@MacBook-Air-18 Downloads %

@@ -56,13 +56,12 @@ recommonmark==0.7.1
requests~=2.31.0
rich~=13.4.2
s3transfer~=0.6.1
selenium~=4.10.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only used in tests, so I moved it to dev-requirements.txt.

result = browser.find_element_by_id("description-overflow-row_1")
result = browser.find_element(By.ID, "description-overflow-row_1")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making find_element syntax consistent.

@michplunkett michplunkett changed the title Address SQLAlchemy and Selenium warnings Address Selenium warnings Nov 22, 2024
Copy link
Member

@b-meson b-meson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. Are we not worried about the warning in lines 3700-3701 in your
"after" screenshot?

@michplunkett
Copy link
Collaborator Author

That's a different warning. That can be addressed in another PR, imo.

@michplunkett michplunkett merged commit 70e6fde into develop Nov 23, 2024
3 checks passed
@michplunkett michplunkett deleted the address-deprecation-warnings branch November 23, 2024 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants